package com.design.yjx.singleton;

/**
 * @author yuanjianxin
 * @date 2017/8/3 18:22
 * 单例模式：懒汉模式
 */
public class Singleton {
    private static Singleton emp;

    private Singleton(){
    }

    public static Singleton getInstance(){
        if (emp == null){
            emp = new Singleton();
        }
        return emp;
    }



}
